Espressif Systems /ESP32-S2 /SPI0 /CTRL1

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTRL1

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0CLK_MODE 0 (CLK_MODE_13)CLK_MODE_13 0 (RSCK_DATA_OUT)RSCK_DATA_OUT 0 (W16_17_WR_ENA)W16_17_WR_ENA 0CS_HOLD_DELAY

Description

SPI control register 1

Fields

CLK_MODE

SPI clock mode bits. 0: SPI clock is off when CS inactive 1: SPI clock is delayed one cycle after CS inactive 2: SPI clock is delayed two cycles after CS inactive 3: SPI clock is alwasy on. Can be configured in CONF state.

CLK_MODE_13

{CPOL, CPHA},1: support spi clk mode 1 and 3, first edge output data B[0]/B[7]. 0: support spi clk mode 0 and 2, first edge output data B[1]/B[6].

RSCK_DATA_OUT

It saves half a cycle when tsck is the same as rsck. 1: output data at rsck posedge 0: output data at tsck posedge

W16_17_WR_ENA

1:SPI_BUF16~SPI_BUF17 can be written 0:SPI_BUF16~SPI_BUF17 can not be written. Can be configured in CONF state.

CS_HOLD_DELAY

SPI cs signal is delayed by spi clock cycles. Can be configured in CONF state.

Links

() ()